import request from '@/utils/request'

// 厂家
export function manufacturer() {
  return request({
    url: '/dv/cache/manufacturer',
    method: 'get',
  })
}

// 品牌
export function brand() {
  return request({
    url: '/dv/cache/brand',
    method: 'get',
  })
}

// 设备模块
export function module() {
  return request({
    url: '/dv/cache/module',
    method: 'get',
  })
}

// 获取设备型号
export function getDeviceTypeName() {
  return request({
    url: '/device/info/getname',
    method: 'get',
  })
}

// 获取所有运维人员信息
export function allOperationUser() {
  return request({
    url: '/device/operationUser/listForDeploy',
    method: 'get',
    params: {status: 0}
  })
}


// 获取所有区域，不分页
export function getRegionData(params) {
  return request({
    url: '/system/region/data',
    method: 'get',
    params
  })
}
export function getBranchData() {
  return request({
    url: '/items/branch/data',
    method: 'get'
  })
}

// 获取所有分组
export function getGroupData() {
  return request({
    url: '/device/group/listForDevice',
    method: 'get'
  })
}

// 获取网点树形数据
export function cfgBrancBranchTreeh() {
  return request({
    url: '/cfgBranch/branchTree',
    method: 'get'
  })
}

// 获取网点树形数据
export function getPlaceManagerList() {
  return request({
    url: '/device/placeManager/listForLog',
    method: 'get'
  })
}
